Skip to content

404: add custom page with scoped path handling#32

Merged
dscho merged 1 commit intogitgitgadget:mainfrom
ritovision:404
Mar 13, 2026
Merged

404: add custom page with scoped path handling#32
dscho merged 1 commit intogitgitgadget:mainfrom
ritovision:404

Conversation

@ritorhymes
Copy link
Contributor

Summary

Adds a custom 404 page with centered branding, return-home link, and footer. Scopes 404 path handling so assets resolve reliably on 404 URLs without changing normal page behavior.

The default banner is omitted on 404 so the error state and recovery action are immediately clear.

Closes #30


404-gitgitgadget

404s are served at unknown, often nested URLs, where relative asset
paths can resolve against missing paths instead of site root.

This keeps 404 assets and navigation resolving from the homepage
context without changing URL behavior on normal pages.

The default banner is omitted on 404 so the error state and recovery
action are immediately clear.
Copy link
Member

@dscho dscho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks!

@dscho dscho merged commit 632fcfc into gitgitgadget:main Mar 13, 2026
1 check passed
@ritorhymes
Copy link
Contributor Author

You got it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No 404 page handling

2 participants